{include file="header.tpl" title="Bao tri lien ket"}
<form action="" method="post" name ="tongquat" target="_self">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="195">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td colspan="3" align="right" nowrap="nowrap">
  
  <div align="right">
    <select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
      
    
   {foreach from=$chuyentrang key=k item=v}
      
    
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
      
    
 	{/foreach}

  
    </select>  
    <input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'"/>  
  </div></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>
  <tr>
    <td>{$lbl_maKH}</td>
    <td style="color:#FF0000"><input name="TERMINTCD" id="TERMINTCD" type="text" style="background:{$colorTERMINTCD}" value="{$TERMINTCD}" size="20" maxlength="10" {if $activefield eq 'enabled' } readonly="readonly" {/if} />
      *
        <input type="submit" name="find" value="    " id="replacement_find"></td>
	<td>{$lbl_TrangThai}</td>
	<td><span style="color:#FF0000">
	  <select name="STATUS" size="1" style="background:{$colorSTATUS}"; >
	    
      
      {foreach from=$cbo_STATUS key=k item=v}
	  	
      
	    <option value="{$k}" {if $k eq $STATUS} selected="selected" {/if} >{$v}</option>
	    
      
      {/foreach}
    
    
	    </select>
	*</span><input name="hiddenSTATUS" type="hidden" value="{$hiddenSTATUS}" /></td></td>
  </tr>
  <tr>
    <td>{$lbl_KyHanTu}</td>
    <td width="276"><input name="FRMTERM" id="FRMTERM" type="text" value="{$FRMTERM}" style="background:{$colorFRMTERM}; text-align:right"  size="3" maxlength="5" onkeypress="return numberOnly(event);" readonly="readonly"/>
        <select name="FRMTERMCD" size="1" disabled="disabled" >
          
    {foreach from=$cboTERMCD key=k item=v}
     
          <option value="{$k}" {if $k eq $FRMTERMCD} selected="selected" {/if} >{$v}</option>
          
    {/foreach}
    
        </select>
        <span style="color:#FF0000">*</span> <input name="hiddenFRMTERMCD" type="hidden" value="{$FRMTERMCD}" /></td>
    <td width="152">{$lbl_KyHanDen} </td>
    <td width="678"><input name="TOTERM" id="TOTERM" type="text" value="{$TOTERM}" style="background:{$colorTOTERM}; text-align:right" size="3" maxlength="5" onkeypress="return numberOnly(event);" readonly="readonly"/>
        <select name="TOTERMCD" size="1" disabled="disabled">
          
        
        {foreach from=$cboTERMCD key=k item=v}
        
        
          <option value="{$k}" {if $k eq $TOTERMCD} selected="selected" {/if} >{$v}</option>
          
        
        {/foreach}
      
      
        </select>
        <span style="color:#FF0000">*</span> <input name="hiddenTOTERMCD" type="hidden" value="{$TOTERMCD}" /></td>
  </tr>
  <tr>
    <td>{$lbl_LaiSuat}</td>
    <td><input name="INTRATE" type="text" style="background:{$colorlaisuat}; text-align:right" value="{$INTRATE}" size="20" maxlength="12" onblur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/></td>
	<td>{$lbl_MaLaiSuat}</td>
	<td><span style="color:#FF0000">
	  <input name="INTRATECD" id="INTRATECD" type="text" style="background:{$colormaLS}" value="{$INTRATECD}" size="20" maxlength="5" />
*
<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=INTRATECD', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat" id="replacement_binoculars" value="     " />
	</span></td>
  </tr>
  <tr>
    <td>{$lbl_SanPham}</td>
    <td colspan="3"><span style="color:#FF0000">
      <select id="PRDCODE" name="PRDCODE" size="1"  style="background:{$colorPRDCODE};" {if $activefield eq 'enabled' } disabled="disabled" {/if}>
        <option value=""></option>
        {foreach from=$cbo_PRDCODE key=k item=v}  
        <option value="{$k}" {if $PRDCODE eq $k} selected="selected" {/if}>{$k} - {$v}</option>
        {/foreach}  
       </select>
*
<input type="hidden" value="{$PRDCODE}" id="PRDCODEtmp" name="PRDCODEtmp" />
    </span></td>
  </tr>
 
<tr>
<td colspan="4">
<p>&nbsp;</p></tr>
<tr>

<td colspan="4" align="right" nowrap="nowrap">
    <input type="button" name="cancle" id="cancle" value="{$ten_cancle}" class="button_style" onclick="activeform(this.form,'TERMINTCD-STATUS-PRDCODE');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
    <input type="submit" name="capnhat" value="{$ten_cap_nhat}" {if $activefield eq 'disabled' }disabled="disabled" {/if} class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
  </tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap">
<input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
<input name="detail" type="submit" value="{$ten_chitiet}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>

<tr>
<td colspan="3">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap"> 
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
   {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
